// Copy.cpp : implementation file
//

#include "stdafx.h"
#include "Copy.h"


// CCopy

CCopy::CCopy()
{
}

CCopy::~CCopy()
{
}


// CCopy member functions

BOOL CCopy::Apply(CxImage& srcImage, CxImage& destImage)
{
	if (srcImage.ResetIteration() && destImage.ResetIteration())
	{
		RGBQUAD value;
		while (srcImage.GetNextPixelColor(value))
			destImage.SetNextPixelColor(value);
		return TRUE;
	}
	else
		return FALSE;
}